package com.kingsoft.dc.khaos.module.spark.constants
/**
  * 常量配置
  *
  * @author gaosong3@kingsoft.com
  * @date 2019/2/19
  */
object CosConstants {

  /**
    * 调度相关配置常量
    */
  final val COS_BUCKET = "cos.bucket"
  final val COS_ENDPOINT = "cos.endpoint"
  final val COS_REGION = "cos.region"
  final val COS_APPID = "cos.appid"
  final val COS_AK = "cos.ak"
  final val COS_SK = "cos.sk"
  final val COS_WORKDIR = "/di/tmp"
  final val COS_DELIMETER = "cos.delimeter"

  final val COS_HADOOP_CONFIG_FILE = "cos_hadoop_config.xml"
  final val COS_CONFIG_FILE = "cos.properties"
  final val HDFS_CONFIG_FILE = "hdfs.properties"

  //hadoop config keys
  final val FS_COSN_USERINFO_SECRETID = "fs.cosn.userinfo.secretId"
  final val FS_COSN_USERINFO_SECRETKEY = "fs.cosn.userinfo.secretKey"
  final val FS_COSN_USERINFO_REGION = "fs.cosn.userinfo.region"
  final val FS_COSN_USERINFO_ENDPOINT_SUFFIX = "fs.cosn.userinfo.endpoint_suffix"
  final val FS_COSN_TMP_DIR = "fs.cosn.tmp.dir"
  final val DEFAULT_FS = "fs.defaultFS"

  final val FS_COSN_BUCKET_ENDPOINT_SUFFIX = "fs.cosn.bucket.endpoint_suffix"
  final val FS_COSN_BUCKET_REGION = "fs.cosn.bucket.region"
}
